package com.cskaoyan.wx.controller;

import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.bean.vo.WxUserIndexInfoVo;
import com.cskaoyan.wx.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WxUserController {

    @Autowired
    WxUserService wxUserService;

    @RequestMapping("wx/user/index")
    public BaseRespVo index() {

        //假设userId=1
        int userId = 1;
        WxUserIndexInfoVo userIndexInfoVo = wxUserService.getUserIndexInfo(userId);
        return BaseRespVo.ok(userIndexInfoVo);
    }


}
